
function searchFunc(str, relove){ 
	uni.request({
		url:"http://qt.gtimg.cn/q=000001," + str,
		method:"get",
		success(res) {
			
			if(res.data === 'v_pv_none_match="1";'){
				return uni.showToast({
					title:'输入错误, 查询不到该股信息！',
					icon:'none'
				})
			} else {
				relove(res);
			}
		}
	})
}

function searchFuncDbole(str, relove){ 
	uni.request({
		url:"http://qt.gtimg.cn/q=ff_000001," + str,
		method:"get",
		success(res) {
			if(res.data === 'v_pv_none_match="1";'){
				return uni.showToast({
					title:'输入错误, 查询不到该股信息！',
					icon:'none'
				})
			} else {
				relove(res);
			}
		}
	})
}


function movementAxios(data, relove){
	uni.request({
		url:"https://api-hq.chongnengjihua.com/watching/api/1/list/stock/abnormal",
		method:"POST",
		data:data,
		success(res) {
			relove(res)
		}
	})
}
export {
	searchFunc,
	searchFuncDbole,
	movementAxios
}